<ul class="breadcrumb">
	<li class="active">
		Admin
	</li>
</ul>

<section id="admin_films" class="admin">
	<h1>Liste des séances</h1>
	
	<div id="list-films">

		<?php if($seances) : ?>
			<table class="table table-striped table-bordered table-hover">
				<tr>
					<th>ID</th>
					<th>Date</th>
					<th>Salle</th>
					<th>Actions</th>
				</tr>
				<?php foreach($seances as $seance) : ?>
				<tr>
					<td><?php echo $seance['Seance']['id'] ?></td>
					<td><?php echo $seance['Seance']['date'] ?></td>
					<td><?php echo $seance['Salle']['nom'] ?></td>
					<td>
					<?php echo $this->Html->link('Modifier', array(
						'admin' => true,
						'controller' => 'seances',
						'action' => 'edit',
						$seance['Seance']['id']
					), array(
						'class' => 'btn btn-small'
					)); ?> 
					<?php echo $this->Html->link('Supprimer', array(
						'admin' => true,
						'controller' => 'seances',
						'action' => 'delete',
						$seance['Seance']['id']
					), array(
						'class' => 'btn btn-danger btn-small'
					)); ?>
					</td>
				</tr>
				<?php endforeach; ?>
			</table>
		<?php else: ?>
			<p>Aucune séance n'est disponible pour ce film</p>
		<?php endif; ?>

		<p><?php echo $this->Html->link('Ajouter une séance', array(
			'admin' => true,
			'controller' => 'seances',
			'action' => 'add'
		), array(
			'class' => 'btn btn-primary'
		)); ?></p>
	</div>
</section>